<%@include file="header.jsp" %>

<span class="mainheading_js">Job Manager &raquo; My Applications</span><img src="../images/blank.gif" alt="blank" width="18" height="17" border="0" /><br><br />
<form name="frm1" id="frm1" action="savejob" method="post" onSubmit="return ValidateForm(frm1)">

    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl_bdr">
        <tr>
            <td colspan="2" class="sde_mnu_hdr_blue"><img src="../images/top_left.gif" class="sde_mnu_img2" style="margin-left:3px; margin-top:3px;"/>My Saved Jobs
                <span class="messagesred">
                </span></td>
            <td width="0%" class="sde_mnu_hdr_blue"></td>
        </tr>
        <tr>
            <td width="40%" height="26" style="padding-left:5px;">This feature is to track  saved job(s)</td>
            <td width="60%" align="right" class="sde_mnu_hdr_blue" style="padding-left:5px;">  <input name="apply" type="submit" id="apply" value="Apply" class="button2"/>
                &nbsp;
                <input name="delete" type="submit" id="delete" value="Delete" class="button2"/> </td>
        </tr>

        <tr>
            <td colspan="2" align="left" valign="top">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="inset">
                    <tr>
                        <td>
                           
                            <table width="100%" border="0" cellpadding="0" cellspacing="0">

                                <tr style="background-color: skyblue">
                                    <td width="28%" height="25" class="sde_mnu_hdr_blue" style="padding-left:5px;"><strong>Company Logo</strong></td>
                                    <td width="28%" height="25" class="sde_mnu_hdr_blue" style="padding-left:5px;"><strong>Job Title</a></strong></td>
                                    <td width="24%" class="sde_mnu_hdr_blue"><strong>Company Name </strong></td>
                                    <td width="24%" class="sde_mnu_hdr_blue"><strong>Last Date </strong></td>
                                    <td width="24%" align="center" class="sde_mnu_hdr_blue"><input name="checkall" type="checkbox" "  value="34" class="checked"/>
                                    </td>
                                </tr>
                                <%
                                            try {
                                                Connection con=Dbconn.getConn();
                                                Statement st=con.createStatement();
                                                ResultSet rs=st.executeQuery("select jobs.jobid,jobtitle,company.compid,compname,DATE_FORMAT(validuntil,'%a %d-%b-%Y') as lastdate from jobs,savedjob,company where jobs.jobid=savedjob.jobid and jobs.compid=company.compid and savedjob.username='"+uname+"' and validuntil>=curdate()");
                                                while (rs.next()) {
                                %>
                                <tr>
                                    <td><img src="../src/getpic.jsp?id=ibm&table=company&col=logo&pk_col=compid" width="70" height="30"></td>
                                    <a href="viewjobdetails.jsp?jobid=<%=rs.getString("jobid")%>"><td height="25" class="link" style="padding-left:5px; text-transform:capitalize;"><%=rs.getString("jobtitle")%>	</td></a>
                                    <td  style="text-transform:capitalize;"><%=rs.getString("compname")%></td>
                                    <td ><%=rs.getString("lastdate")%></td>
                                    <td align="center" ><input name="cmcheck[]2" type="checkbox" id="cmcheck[]2"  value="<%=rs.getString("jobid")%>" class="checked"/></td>
                                </tr>
                                <%}
                                            } catch (Exception e) {
                                                out.println(e);
                                            }%>
                                <tr>
                                    <td colspan="5" style="height: 10px"></td>
                                </tr>
                                <tr>
                                    <td colspan="5" style="background-color: skyblue;height: 20px"></td>
                                </tr>

                            </table>
                                
                            
                            </td>
                    </tr>
                </table></td>
        </tr>
    </table>
</form>

<%@include file="footer.jsp" %>